//
//  GYMineProductInfoEditViewModel.h
//  GYDemo
//
//  Created by mac on 2018/3/30.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "GCBaseViewModel.h"
#import "GYMineProductInfoDetailViewModel.h"
#import "GYMineBuyInfoEditViewModel.h"

@interface GYMineProductInfoEditDetailCellModel : GYMineBuyInfoEditDetailCellModel
@property (nonatomic,assign) NSInteger specialType; //特殊类型：1 = 图片 2 = 多张图片
@property (nonatomic,strong) NSString *imgUrl;
@property (nonatomic,strong) NSMutableArray *imgs;
@property (nonatomic,strong) NSString *cellHeights;
@end

///提交新求购model
@interface GYMineProductInfoEditUpdateModel : NSObject
{
    NSArray *mustFillKeys;
    NSArray *allKeys;
}
///必填
@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) NSString *protypeid;
@property (nonatomic,strong) NSString *province;
@property (nonatomic,strong) NSString *city;
@property (nonatomic,strong) NSString *area;
@property (nonatomic,strong) NSString *unit;
@property (nonatomic,strong) NSString *price;
@property (nonatomic,strong) NSString *count;
@property (nonatomic,strong) NSString *setnum;
@property (nonatomic,strong) NSString *imgUrl;
///选填
@property (nonatomic,strong) NSString *idField;
@property (nonatomic,strong) NSString *descriptionField;
@property (nonatomic,strong) NSMutableDictionary *otherInfo;
-(NSMutableDictionary *)exportParameter;
-(BOOL)isContainKey:(NSString *)key;
-(void)setValue:(id)value forKey:(NSString *)key;
@end

@interface GYMineProductInfoEditViewModel : GCBaseViewModel
@property (nonatomic,strong) GYMineProductInfoDetailModel *productInfoDetailModel;
@property (nonatomic,strong) GYMineProductInfoEditUpdateModel *updateModel;
@property (nonatomic,strong) NSMutableArray *detailItems;
@property (nonatomic,strong) NSString *updateSign;
///请求商品类型特殊属性
-(void)requestType:(NSMutableDictionary *)para;
///保存或提交求购信息
-(void)requestSave;
@end
